package com.sailfish.springbootdemo.service.db1;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.PcbaCompany;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PcbaCompanyService {

    /**
     * 查询所有的
     *
     * @param searchValue
     * @return
     */
    Result getAllCompany(String searchValue);

    /**
     * 删除工厂同时删除其下车间
     *
     * @return
     */
    Result deleteCompanyAndWorkshop(Integer pcbaCompanyId);

    /**
     * 根据id查询
     *
     * @param pcbaCompanyId
     * @return
     */
    PcbaCompany getPcbaCompanyById(Integer pcbaCompanyId);

    Result addOrUpdatePcbaCompany(String mode, PcbaCompany pcbaCompany);

    /**
     * 更新 by 工厂的邮件负责人
     *
     * @param pcbaCompanyId
     * @param emailOwners
     * @return
     */
    Result updateEmailOwners(Integer pcbaCompanyId, String emailOwners);

    Result updateEmailOwners2(Integer pcbaCompanyId, String emailOwners2);

    Result updateEmailOwners3(Integer pcbaCompanyId, String emailOwners3);

    Result updateEmailOwners4(Integer pcbaCompanyId, String emailOwners4);

    Result updateEmailOwners5(Integer pcbaCompanyId, String emailOwners5);

    Result updateEmailOwners6(Integer pcbaCompanyId, String emailOwners6);
}
